// banner功能相关的所有代码
import { ref } from 'vue'
import { getBannerAPI } from '@/api/home'

export function useBanner () {
  const bannerList = ref([])
  const fetchList = async () => {
    const res = await getBannerAPI()
    bannerList.value = res.data.result
  }
  fetchList()
  return {
    bannerList
  }
}
